import request from '@/utils/request'
export const getTaskReportInfo = (start, end) => request.get('/api/task-service/task/taskReportInfo/' + start + '%2000:00:00/' + end + '%2023:59:59')
export const getOrderCount = (start, end) => request.get('/api/order-service/report/orderCount?start=' + start + '+00:00:00&end=' + end + '+23:59:59')
export const getOrderAmount = (start, end) => request.get('/api/order-service/report/orderAmount?start=' + start + '+00:00:00&end=' + end + '+23:59:59')
export const getSkuTop = (start, end) => request.get('/api/order-service/report/skuTop/10/' + start + '/' + end)
export const getamountCollect = (start, end, num) => request.get(`/api/order-service/report/amountCollect/${num}/${start}/${end}`)
export const getRegionCollect = (start, end) => request.get('/api/order-service/report/regionCollect/' + start + '/' + end)
export const getNodeCollect = () => request.get('/api/vm-service/node/nodeCollect')
export const getSearch = (data) => request.get('/api/task-service/task/search', { params: data })
export const getOperatorList = (code) => request.get(`/api/user-service/user/operatorList/${code}`)
export const getchannelList = (code) => request.get(`/api/vm-service/channel/channelList/${code}`)
export const postCreate = (data) => request.post('/api/task-service/task/create', data)
export const getSupplyAlertValue = () => request.get('/api/task-service/task/supplyAlertValue')
export const postAutoSupplyConfig = (data) => request.post('/api/task-service/task/autoSupplyConfig', data)
export const getTaskInfo = (taskId) => request.get(`/api/task-service/task/taskInfo/${taskId}`)
export const getTaskDetails = (taskId) => request.get(`/api/task-service/taskDetails/${taskId}`)
export const postCancel = (data, code) => request.post(`/api/task-service/task/cancel/${code}`, data)

export const getRepairerList = (code) => request.get(`/api/user-service/user/repairerList/${code}`)
